package com.hospital.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hospital.entity.SickBed;
import com.hospital.entity.SickRoom;
import com.hospital.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Hospitalized {
    private Integer id;
    private Integer rid;
    private Integer bid;
    private Integer uid;
    private String uname;
    private String usex;
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ctime;
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date etime;
}
